<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The CairoHintStyle class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.cairohintmetrics.html">CairoHintMetrics</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.cairolinecap.html">CairoLineCap</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.cairohintstyle" class="reference">

 <h1 class="title">The CairoHintStyle class</h1>
 

 <div class="partintro"><p class="verinfo">(No version information available, might only be in Git)</p>


  <div class="section" id="cairohintstyle.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    Specifies the type of hinting to do on font outlines. Hinting is the process of fitting outlines to the pixel grid
    in order to improve the appearance of the result. Since hinting outlines involves distorting them, it also reduces
    the faithfulness to the original outline shapes. Not all of the outline hinting styles are supported by all font
    backends.
   </p>
  </div>


  <div class="section" id="cairohintstyle.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">CairoHintStyle</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 常量 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairohintstyle.html#cairohintstyle.constants.style-default"><var class="varname">STYLE_DEFAULT</var></a></var>
     <span class="initializer"> = 0</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairohintstyle.html#cairohintstyle.constants.style-none"><var class="varname">STYLE_NONE</var></a></var>
     <span class="initializer"> = 1</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairohintstyle.html#cairohintstyle.constants.style-slight"><var class="varname">STYLE_SLIGHT</var></a></var>
     <span class="initializer"> = 2</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairohintstyle.html#cairohintstyle.constants.style-medium"><var class="varname">STYLE_MEDIUM</var></a></var>
     <span class="initializer"> = 3</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairohintstyle.html#cairohintstyle.constants.style-full"><var class="varname">STYLE_FULL</var></a></var>
     <span class="initializer"> = 4</span>
    ;</div>

    
   }</div>


  </div>
  

  <div class="section" id="cairohintstyle.constants">
   <h2 class="title">预定义常量</h2>
   <dl>


    
     <dt id="cairohintstyle.constants.style-default"><strong><code>CairoHintStyle::STYLE_DEFAULT</code></strong></dt>

     <dd>

      <p class="para">Use the default hint style for font backend and target device </p>
     </dd>

    

    
     <dt id="cairohintstyle.constants.style-none"><strong><code>CairoHintStyle::STYLE_NONE</code></strong></dt>

     <dd>

      <p class="para">Do not hint outlines </p>
     </dd>

    

    
     <dt id="cairohintstyle.constants.style-slight"><strong><code>CairoHintStyle::STYLE_SLIGHT</code></strong></dt>

     <dd>

      <p class="para">Hint outlines slightly to improve contrast while retaining good fidelity to the original shapes.</p>
     </dd>

    

    
     <dt id="cairohintstyle.constants.style-medium"><strong><code>CairoHintStyle::STYLE_MEDIUM</code></strong></dt>

     <dd>

      <p class="para">Hint outlines with medium strength giving a compromise between fidelity to the original shapes and contrast </p>
     </dd>

    

    
     <dt id="cairohintstyle.constants.style-full"><strong><code>CairoHintStyle::STYLE_FULL</code></strong></dt>

     <dd>

      <p class="para">Hint outlines to maximize contrast</p>
     </dd>

    

   </dl>

  </div>



 </div>

 

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.cairohintmetrics.html">CairoHintMetrics</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.cairolinecap.html">CairoLineCap</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
